#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i, j;
	int a[10] = {1,3,2,8,4,7,11,10,0,18};
	int sz = sizeof(a) / sizeof(a[0]);
	for(i=0;i<sz-1;i++)
		for (j = 0; j < sz - 1 - i; j++)
		{
			if (a[j] > a[j+1])
			{
				int t = a[j];
				a[j] = a[j + 1];
				a[j + 1] = t;
			}
		}
	for (i = 0; i < 10; i++)
		printf("%d ", a[i]);

	return 0;
}